<?php

/**
 * 六象元一  赠品文件
 * ============================================================================
 * $Author: 王海龙 $
 * $Id: gift.php 17217 2014-11-04 06:29:08Z 王海龙 $
*/
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
require(dirname(__FILE__) . '/includes/lib_gift.php');
/* 载入语言文件 */
if (!isset($_REQUEST['act']))
{
    $_REQUEST['act'] = "gift_list";
}

$smarty->assign('act',  $_REQUEST['act']);
assign_template();
if($_REQUEST['act'] == 'gift_list'){
    $gift_goods_list = get_gift_goods_list($total['goods_price']);
    $smarty->assign('gift_goods_list',  $gift_goods_list);
    $smarty->display('gift.dwt');
}
if($_REQUEST['act'] == 'guize'){
    $smarty->display('gift.dwt');
}
